﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace Server_NhaSach.DataTransferObject
{
    [DataContract]
    public class NhaCungCapDTO
    {
        #region "Khai báo các biến"
        private string _maNCC;
        private string _tenNCC;
        private string _diaChiNCC;
        private string _soDTNCC;
        private string _emailNCC;
        private double _congNoNCC;
        #endregion
        #region "Khai báo các thuộc tính"
        [DataMember]
        public string MaNCC
        {
            get { return _maNCC; }
            set { _maNCC = value; }
        }
        [DataMember]
        public string TenNCC
        {
            get { return _tenNCC; }
            set { _tenNCC = value; }
        }
        [DataMember]
        public string DiaChiNCC
        {
            get { return _diaChiNCC; }
            set { _diaChiNCC = value; }
        }
        [DataMember]
        public string SoDTNCC
        {
            get { return _soDTNCC; }
            set { _soDTNCC = value; }
        }
        [DataMember]
        public string EmailNCC
        {
            get { return _emailNCC; }
            set { _emailNCC = value; }
        }
        [DataMember]
        public double CongNoNCC
        {
            get { return _congNoNCC; }
            set { _congNoNCC = value; }
        }
        #endregion
        #region "Khai báo các contructor"
        //khong doi so
        public NhaCungCapDTO(){ }
        public NhaCungCapDTO(string ma,string ten,string diachi,string sdt,string email,double congNo) 
        {
            MaNCC = ma;
            TenNCC = ten;
            DiaChiNCC = diachi;
            SoDTNCC = sdt;
            EmailNCC = email;
            CongNoNCC = congNo;
        }
        public NhaCungCapDTO(NhaCungCapDTO NhaCungCap)
        {
            this.MaNCC = NhaCungCap.MaNCC;
            this.TenNCC = NhaCungCap.TenNCC;
            this.DiaChiNCC = NhaCungCap.DiaChiNCC;
            this.SoDTNCC = NhaCungCap.SoDTNCC;
            this.EmailNCC = NhaCungCap.EmailNCC;
            this.CongNoNCC = NhaCungCap.CongNoNCC;
        }
        #endregion
    }
}